﻿using System.Windows.Forms;

namespace Pibby.Controls
{
	public class ListViewIntegerSubItem : ListViewItem.ListViewSubItem
	{
		private readonly int _value;

		public ListViewIntegerSubItem(int v)
			: base()
		{
			this._value = v;
			this.Text = v.ToString ();
		}

		public int Value
		{
			get
			{
				return _value;
			}
		}

		public static int Compare(ListViewIntegerSubItem first, ListViewIntegerSubItem second)
		{
			return first.Value - second.Value;
		}
	}
}
